package com.myself.core.table

import com.myself.core.entity.Record
import com.myself.common.table.BaseTable
import org.ktorm.database.Database
import org.ktorm.entity.sequenceOf
import org.ktorm.schema.*

object Records : BaseTable<Record>("record") {

    val first = int("first").bindTo { it.first }
    val second = int("second").bindTo { it.second }
    val third = int("third").bindTo { it.third }

    val Database.records get() = this.sequenceOf(Records)
}